<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vfordemo</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>

</head>
<body>
<div id="app">
    <ul>
        <li v-for="(item, index) in arr" :title="item">{{index}}{{item}}</li>
        <li v-for="(key, value) in dir" :title="item">{{ value}}</li>
    </ul>
</div>

<script>
    const app = new Vue({
        el:"#app",
        data:{
            arr:[1, 2, 3, 4],
            dir:{
                name:"1",
                age:"2"
            }
        },
        methods:{}
    })
</script>
</body>
</html>
